From: Florian Müllner Date: Sun, 14 Mar 2010 14:47:42 +0000 (+0100) Subject: [Workspace] Disconnect reposition handler when leaving overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10308 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ee57dab846ed31f0fe969bb6cbeee3bc2f23d561;p=gnome-shell.git [Workspace] Disconnect reposition handler when leaving overview As the repositioning after closing a window preview is delayed, it is possible that the timeout is triggered while leaving the overview. In that case the previews move to the new overview position and are changed abruptly to the original window position when the overview zoom is done. To prevent this, disconnect the handler when leaving the overview. --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 20d5fd27c..0b5599011 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1366,6 +1366,10 @@ Workspace.prototype = { this._hideAllOverlays(); + if (this._repositionWindowsId > 0) { + Mainloop.source_remove(this._repositionWindowsId); + this._repositionWindowsId = 0; + } Main.overview.connect('hidden', Lang.bind(this, this._doneLeavingOverview));